# coding=utf-8
from flask import Flask
import datetime

from flask_cors import CORS
app = Flask(__name__)

app.config.from_object('config.ProductionConfig')
app.config['SQLALCHEMY_COMMIT_ON_TEARDOWN'] = True

app.config['JWT_EXPIRATION_DELTA'] = datetime.timedelta(
    minutes=600)  # token过期时间 600分钟
#app.config['JWT_AUTH_URL_RULE'] = '/auth/login'  #
app.config['JWT_AUTH_HEADER_PREFIX'] = 'Bearer'  #
CORS(app)

